package userchannellogic

import (
	"context"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/user/channel"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserUsdtWalletsPageLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewUserUsdtWalletsPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserUsdtWalletsPageLogic {
	return &UserUsdtWalletsPageLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *UserUsdtWalletsPageLogic) UserUsdtWalletsPage(in *rpc.UserUsdtWalletsPageRequest) (*rpc.UserUsdtWalletsPageResponse, error) {
	return channel.NewUSDTWalletModel(l.ctx, l.svcCtx.Db).UserUsdtWalletsPage(in)
}
